package com.t9;

/**
 * Created by xuyiwei on 2018/7/20.
 */
abstract class BaseWithPrint {
    public BaseWithPrint() { print(); }
    public abstract void print();
}
class DerivedWithPrint extends BaseWithPrint {
    int i = 47;
    public void print() {
        System.out.println("i = " + i);
    }
}
public class E03_Initialization {
    public static void main(String args[]) {
        DerivedWithPrint dp = new DerivedWithPrint();
        dp.print();
    }
    //i = 0
    //i = 47
}